package cn.springcloud.alibaba.core.constant;

public class TokenConstant {
	/**
	 * JWT的秘钥
	 */
	public final static String SIGN_KEY = "myjszl";

	public final static String TOKEN_NAME = "jwt-token";

	public final static String PRINCIPAL_NAME = "principal";

	public static final String AUTHORITIES_NAME = "authorities";

	public static final String USER_ID = "user_id";

	public static final String JTI = "jti";

	public static final String EXPR = "expr";

	/**
	 * 权限<->url对应的KEY
	 */
	public final static String OAUTH_URLS = "oauth2:oauth_urls";
	/**
	 * JWT令牌黑名单的KEY
	 */
	public final static String JTI_KEY_PREFIX = "oauth2:black:";
}
